package com.example.emailWeb.ntru.demo;

import com.example.emailWeb.ntru.polynomial.IntegerPolynomial;

public class Test {

    public static void main(String[] args) {
        /*String s = "Hello World!";
        byte[] b = s.getBytes();
        System.out.println(Arrays.toString(b));

        byte[] cM = {12,72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33,0};
        int N = 439;
        int maxM1 = 126;
        IntegerPolynomial mTrin = IntegerPolynomial.fromBinary3Sves(cM, N, maxM1>0);
        System.out.println(mTrin);*/
        int[] arr1 = {3,2,5};
        int[] arr2 = {2,1,5};
        IntegerPolynomial a = new IntegerPolynomial(arr1);
        IntegerPolynomial b = new IntegerPolynomial(arr2);
        IntegerPolynomial c = a.mult(b);
        IntegerPolynomial d =a.invertFq(2);
        System.out.println(c);
    }
}
